﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace wms_wpf.Apiservice
{
    public class ApiResponse
    {
        public ApiResponse(string msg, bool state, object? dto)
        {
            Msg = msg;
            Dto = dto;
            State = state;
        }

        public string Msg { get; set; }
        public object? Dto { get; set; }
        public bool State { get; set; }
    }

    public class ApiResponsePage
    {
        public ApiResponsePage(string msg, bool state, object? dto, long? count, long? pagecount)
        {
            Msg = msg;
            Dto = dto;
            State = state;
            Count = count;
            PageCount = pagecount;
        }

        public string Msg { get; set; }
        public object? Dto { get; set; }
        public bool State { get; set; }
        public long? Count { get; set; }
        public long? PageCount { get; set; }
    }
}
